package light.head.model.el;

import java.io.Serializable;
/**
 * 用户班级联合主键
 */
public class UserClassesRelationPK implements Serializable{
	private static final long serialVersionUID = 5543687754452212328L;
	private Integer clc;			// 班级编号
	private Integer uc;				// 用户编号
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {  
            return true;  
        }  
        if (null == obj) {  
            return false;  
        }  
        if (!(obj instanceof UserClassesRelationPK)) {  
            return false;  
        }  
  
        final UserClassesRelationPK ucr = (UserClassesRelationPK) obj;
        if (!clc.equals(ucr.getClc())) {
            return false;
        }
        if (null == uc || uc.intValue() != ucr.getUc().intValue()) {
            return false;
        }
        return true;  
	}
	@Override
	public int hashCode() {
		int result;  
        result = clc.hashCode();  
        result = 29 * result + uc.hashCode();  
        return result;  
	}
	
	
	public Integer getClc() {
		return clc;
	}
	public void setClc(Integer clc) {
		this.clc = clc;
	}
	public Integer getUc() {
		return uc;
	}
	public void setUc(Integer uc) {
		this.uc = uc;
	}
}
